'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    const models = [
      {
        seriesId: 13,
        nameZh: '燃油版',
        nameEn: 'Fuel',
        descriptionZh: '燃油版宝马X1是一款采用燃油发动机的车型，以其独特的设计、卓越的驾驶体验和先进的技术而受到全球消费者的喜爱。',
        descriptionEn: 'Fuel BMW X1 is a vehicle powered by fuel, known for its unique design, outstanding driving experience, and advanced technology.',
        year: 2024,
        launchDate: '2024-01-01',
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        seriesId: 13,
        nameZh: '电动版',
        nameEn: 'Electric',
        descriptionZh: '电动版宝马X1是一款采用电动发动机的车型，以其独特的设计、卓越的驾驶体验和先进的技术而受到全球消费者的喜爱。',
        descriptionEn: 'Electric BMW X1 is a vehicle powered by electricity, known for its unique design, outstanding driving experience, and advanced technology.',
        year: 2025,
        launchDate: '2025-01-01',
        img: 'https://www.bmw.com/content/dam/bmw/marketBMWCOM/bmw_com/bmw-com-main-content/bmw-com-main-content-article-images/bmw-com-main-content-article-images-2024/bmw-com-main-content-article-images-2024-01-bmw-x1-m-sport-xdrive25i-2024-01-1024x576.jpg',
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        seriesId: 13,
        nameZh: '混动版',
        nameEn: 'Hybrid',
        descriptionZh: '混动版宝马X1是一款采用混动发动机的车型，以其独特的设计、卓越的驾驶体验和先进的技术而受到全球消费者的喜爱。',
        descriptionEn: 'Hybrid BMW X1 is a vehicle powered by hybrid, known for its unique design, outstanding driving experience, and advanced technology.',
        year: 2024,
        launchDate: '2024-01-01',
        img: 'https://www.bmw.com/content/dam/bmw/marketBMWCOM/bmw_com/bmw-com-main-content/bmw-com-main-content-article-images/bmw-com-main-content-article-images-2024/bmw-com-main-content-article-images-2024-01-bmw-x1-m-sport-xdrive25i-2024-01-1024x576.jpg',
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        seriesId: 16,
        nameZh: 'C180',
        nameEn: 'C180',
        descriptionZh: 'C180是奔驰C级的一款入门级车型，以其独特的设计、卓越的驾驶体验和先进的技术而受到全球消费者的喜爱。',
        descriptionEn: 'C180 is a入门级 Mercedes-Benz C-Class, known for its unique design, outstanding driving experience, and advanced technology.',
        year: 2022,
        launchDate: '2022-01-01',
        img: 'https://www.mercedes-benz.com/content/dam/brandhub/global/images/brandhub/mercedes-benz/mercedes-benz-logo.jpg',
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      {
        seriesId: 16,
        nameZh: 'C200',
        nameEn: 'C200',
        descriptionZh: 'C200是奔驰C级的一款中配车型，以其独特的设计、卓越的驾驶体验和先进的技术而受到全球消费者的喜爱。',
        descriptionEn: 'C200 is a medium Mercedes-Benz C-Class, known for its unique design, outstanding driving experience, and advanced technology.',
        year: 2021,
        launchDate: '2021-01-01',
        img: 'https://www.mercedes-benz.com/content/dam/brandhub/global/images/brandhub/mercedes-benz/mercedes-benz-logo.jpg',
        createdAt: new Date(),
        updatedAt: new Date(),
      },
      { 
        seriesId: 16,
        nameZh: 'C260',
        nameEn: 'C260',
        descriptionZh: 'C260是奔驰C级的一款中配车型，以其独特的设计、卓越的驾驶体验和先进的技术而受到全球消费者的喜爱。',
        descriptionEn: 'C260 is a medium Mercedes-Benz C-Class, known for its unique design, outstanding driving experience, and advanced technology.',
        year: 2020,
        launchDate: '2020-01-01',
        img: 'https://www.mercedes-benz.com/content/dam/brandhub/global/images/brandhub/mercedes-benz/mercedes-benz-logo.jpg',
        createdAt: new Date(),
        updatedAt: new Date(),
      },
    ]
    await queryInterface.bulkInsert('Models', models, {});
  },

  async down (queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  }
};
